﻿namespace DataServer.CommonLib.Models.Dimension
{
    public class DimensionEditRequestDto
    {
        public string? DimensionCode { get; set; }

        public string? DimensionName { get; set; }

        public int BusinessType { get; set; }

        public bool IsPublish { get; set; }

        public string? DimensionType { get; set; }

        public Guid? DatabaseId { get; set; }

        public string? DatabaseName { get; set; }

        public string? DatabaseObjectType { get; set; }

        public string? DatabaseObject { get; set; }

        public string? ValueField { get; set; }

        public string? TextField { get; set; }

        public string? FilterCriteria { get; set; }

        public string? OrderCriteria { get; set; }

        public int Sort { get; set; }

        public string? Description { get; set; }

        public IList<DimensionValuesEditDto>? Values { get; set; } = new List<DimensionValuesEditDto>();
    }

    public class DimensionValuesEditDto
    {
        public string? Text { get; set; }

        public string? Value { get; set; }
    }
}